import request from "@/utils/request";

// 查询年度申报
export function listAnnualDeclaration(query) {
  return request({
    url: '/annualDeclaration/list',
    method: 'get',
    params: query
  })
}
// 新增年度申报
export function addAnnualDeclaration(data) {
  return request({
    url: "/annualDeclaration",
    method: "post",
    data: data,
  });
}
// 修改年度申报
export function updateAnnualDeclaration(data) {
  return request({
    url: "/annualDeclaration/edit/" + data.annualId,
    method: "put",
    data:data
  });
}
// 查询年度项目计划名称
export function listAnnualName(query) {
  return request({
    url: '/annualDeclaration/listAnnualName',
    method: 'get',
    params: query
  })
}
// 获取年度申报
export function getAnnualName(annualId) {
  return request({
    url: '/annualDeclaration/' + annualId,
    method: 'get'
  })
}